package com.challenge.smsservice.dormitorymanage.service.impl;

import com.challenge.smsbase.Service.impl.GenericManagerImpl;
import com.challenge.smsdao.dormitorymanage.dao.DormitoryDao;
import com.challenge.smsdao.dormitorymanage.domain.Dormitory;
import com.challenge.smsservice.dormitorymanage.service.DormitoryManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * louzhiqiang
 */
@Component
public class DormitoryManagerImpl extends GenericManagerImpl<Dormitory,Long> implements DormitoryManager {
    //inherit GenericManagerImpl
    DormitoryDao dormitoryDao;

    /**
     * setDormitoryDao
     * @param dormitoryDao
     */
    @Autowired
    public void setDormitoryDao(DormitoryDao dormitoryDao) {
        this.dormitoryDao = dormitoryDao;
        this.dao = this.dormitoryDao;
    }
}
